.gitment-container {
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #FFF;
  word-wrap: break-word;
  * {
    box-sizing: border-box;
    &:disabled {
      cursor: not-allowed;
    }
  }
  a {
    cursor: pointer;
    text-decoration: none;
    &:visited {
      cursor: pointer;
      text-decoration: none;
    }
    &:hover {
      text-decoration: underline;
    }
  }
  .gitment-hidden {
    display: none;
  }
  .gitment-spinner-icon {
    fill: #FFF;
    -webkit-animation: gitment-spin 1s steps(12) infinite;
    animation: gitment-spin 1s steps(12) infinite;
  }
}

@-webkit-keyframes gitment-spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


@keyframes gitment-spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


.gitment-root-container, .gitment-header-container {
  margin: 19px 40px;
}

.gitment-header-like-btn {
  cursor: pointer;
}

.gitment-comment-like-btn {
  cursor: pointer;
  float: right;
  &.liked {
    color: #F44336;
  }
}

.gitment-header-like-btn svg {
  vertical-align: middle;
  height: 30px;
  width: 30px;
}

.gitment-comment-like-btn svg {
  vertical-align: middle;
  height: 20px;
  width: 20px;
}

.gitment-header-like-btn.liked svg, .gitment-comment-like-btn.liked svg {
  fill: #F44336;
}

a.gitment-header-issue-link {
  float: right;
  line-height: 30px;
  color: #FFF;
  &:visited {
    float: right;
    line-height: 30px;
    color: #666;
  }
  &:hover {
    color: #666;
  }
}

.gitment-comments-loading, .gitment-comments-error, .gitment-comments-empty {
  text-align: center;
  margin: 50px 0;
}

.gitment-comments-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 38px;
}

.gitment-comment, .gitment-editor-container {
  position: relative;
  min-height: 60px;
  padding-left: 60px;
  margin: 19px 0;
}

.gitment-comment-avatar, .gitment-editor-avatar {
  float: left;
  margin-left: -60px;
}

.gitment-comment-avatar, .gitment-comment-avatar-img, .gitment-comment-avatar, .gitment-editor-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 3px;
}

.gitment-editor-avatar {
  svg {
    width: 44px;
    height: 44px;
    border-radius: 3px;
  }
  .gitment-github-icon {
    fill: #fff;
    background-color: #FFF;
    border-radius: 50%;
  }
}

.gitment-comment-main {
  position: relative;
  border: 1px solid #262626;
  border-radius: 0;
}

.gitment-editor-main {
  position: relative;
  border: 1px solid #262626;
  border-radius: 0;
  &::before, &::after {
    position: absolute;
    top: 11px;
    left: -16px;
    display: block;
    width: 0;
    height: 0;
    pointer-events: none;
    content: "";
    border-color: transparent;
    border-style: solid solid outset;
  }
}

.gitment-comment-main {
  &::before, &::after {
    position: absolute;
    top: 11px;
    left: -16px;
    display: block;
    width: 0;
    height: 0;
    pointer-events: none;
    content: "";
    border-color: transparent;
    border-style: solid solid outset;
  }
}

.gitment-editor-main::before, .gitment-comment-main::before {
  border-width: 8px;
  border-right-color: #262626;
}

.gitment-editor-main::after, .gitment-comment-main::after {
  margin-top: 1px;
  margin-left: 2px;
  border-width: 7px;
  border-right-color: #262626;
}

.gitment-comment-header {
  margin: 12px 15px;
  color: #FFF;
  background-color: #3f3f3f;
  border-radius: 3px;
}

.gitment-editor-header {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #262626;
}

a.gitment-comment-name {
  font-weight: 600;
  color: #666;
  &:visited {
    font-weight: 600;
    color: #666;
  }
}

.gitment-editor-tabs {
  margin-bottom: -1px;
  margin-left: -1px;
}

.gitment-editor-tab {
  display: inline-block;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 20px;
  color: #4094c7;
  text-decoration: none;
  background-color: transparent;
  border-width: 0 1px;
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  outline: none;
  &.gitment-selected {
    color: #FFF;
    background-color: #3f3f3f;
    border-color: #262626;
  }
}

.gitment-editor-login {
  float: right;
  margin-top: -30px;
  margin-right: 15px;
}

a {
  &.gitment-footer-project-link, &.gitment-editor-login-link {
    color: #2196F3;
    &:visited {
      color: #2196F3;
    }
  }
  &.gitment-editor-logout-link {
    color: #4094c7;
    &:visited {
      color: #666;
    }
    &:hover {
      color: #2196F3;
      text-decoration: none;
    }
  }
}

.gitment-comment-body {
  position: relative;
  margin: 12px 15px;
  overflow: hidden;
  border-radius: 3px;
}

.gitment-comment-body-folded {
  cursor: pointer;
  &::before {
    display: block !important;
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 50px;
    pointer-events: none;
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(255, 255, 255, .9));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(47, 47, 47, 0.9));
  }
  &::after {
    display: block !important;
    content: "Click to Expand" !important;
    text-align: center;
    color: #FFF;
    position: absolute;
    width: 100%;
    height: 50px;
    line-height: 50px;
    left: 0;
    bottom: 0;
    pointer-events: none;
    background: #3f3f3f;
  }
}

.gitment-editor-body {
  margin: 0;
}

.gitment-comment-body > *:first-child, .gitment-editor-preview > *:first-child {
  margin-top: 0 !important;
}

.gitment-comment-body > *:last-child, .gitment-editor-preview > *:last-child {
  margin-bottom: 0 !important;
}

.gitment-editor-body textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  max-height: 500px;
  padding: 16px;
  resize: vertical;
  max-width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  background-color: #3f3f3f;
  color: #FFF;
  vertical-align: middle;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  overflow: visible;
  &:focus {
    background-color: #3f3f3f;
  }
}

.gitment-editor-preview {
  min-height: 150px;
  padding: 16px;
  background-color: transparent;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.gitment-editor-footer {
  padding: 0;
  margin-top: 10px;
  &::after {
    display: table;
    clear: both;
    content: "";
  }
}

a.gitment-editor-footer-tip {
  display: inline-block;
  padding-top: 10px;
  font-size: 12px;
  color: #666;
  &:hover {
    color: #2196F3;
    text-decoration: none;
  }
}

.gitment-comments-pagination {
  list-style: none;
  text-align: right;
  border-radius: 0;
  margin: -19px 0 19px 0;
}

.gitment-comments-page-item {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #262626;
  margin-left: -1px;
  padding: .25rem .5rem;
  &:hover, &.gitment-selected {
    background-color: #f5f5f5;
  }
}

.gitment-editor-submit, .gitment-comments-init-btn {
  color: #fff;
  background-color: #00BCD4;
  position: relative;
  display: inline-block;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-size: 110% 110%;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.gitment-editor-submit:hover {
  background-color: #4094c7;
}

.gitment-comments-init-btn {
  &:hover {
    background-color: #4094c7;
  }
  &:disabled {
    color: rgba(255, 255, 255, 0.75);
    background-color: #4094c7;
    box-shadow: none;
  }
}

.gitment-editor-submit {
  &:disabled {
    color: rgba(255, 255, 255, 0.75);
    background-color: #4094c7;
    box-shadow: none;
  }
  float: right;
}

.gitment-footer-container {
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: right;
  font-size: 12px;
}

/*
 * Markdown CSS
 * Copied from https://github.com/sindresorhus/github-markdown-css
 */

/*.gitment-markdown {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  color: #FFF;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  .pl-c {
    color: #969896;
  }
  .pl-c1, .pl-s .pl-v {
    color: #0086b3;
  }
  .pl-e, .pl-en {
    color: #795da3;
  }
  .pl-smi, .pl-s .pl-s1 {
    color: #FFF;
  }
  .pl-ent {
    color: #63a35c;
  }
  .pl-k {
    color: #a71d5d;
  }
  .pl-s, .pl-pds, .pl-s .pl-pse .pl-s1 {
    color: #183691;
  }
  .pl-sr {
    color: #183691;
    .pl-cce, .pl-sre, .pl-sra {
      color: #183691;
    }
  }
  .pl-v, .pl-smw {
    color: #ed6a43;
  }
  .pl-bu {
    color: #b52a1d;
  }
  .pl-ii {
    color: #f8f8f8;
    background-color: #b52a1d;
  }
  .pl-c2 {
    color: #f8f8f8;
    background-color: #b52a1d;
    &::before {
      content: "^M";
    }
  }
  .pl-sr .pl-cce {
    font-weight: bold;
    color: #63a35c;
  }
  .pl-ml {
    color: #693a17;
  }
  .pl-mh {
    font-weight: bold;
    color: #1d3e81;
    .pl-en {
      font-weight: bold;
      color: #1d3e81;
    }
  }
  .pl-ms {
    font-weight: bold;
    color: #1d3e81;
  }
  .pl-mq {
    color: #008080;
  }
  .pl-mi {
    font-style: italic;
    color: #FFF;
  }
  .pl-mb {
    font-weight: bold;
    color: #FFF;
  }
  .pl-md {
    color: #bd2c00;
    background-color: #ffecec;
  }
  .pl-mi1 {
    color: #55a532;
    background-color: #eaffea;
  }
  .pl-mc {
    color: #ef9700;
    background-color: #ffe3b4;
  }
  .pl-mi2 {
    color: #d8d8d8;
    background-color: #808080;
  }
  .pl-mdr {
    font-weight: bold;
    color: #795da3;
  }
  .pl-mo {
    color: #1d3e81;
  }
  .pl-ba {
    color: #595e62;
  }
  .pl-sg {
    color: #c0c0c0;
  }
  .pl-corl {
    text-decoration: underline;
    color: #183691;
  }
  .octicon {
    display: inline-block;
    vertical-align: text-top;
    fill: currentColor;
  }
  a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
    &:active, &:hover {
      outline-width: 0;
    }
  }
  strong {
    font-weight: inherit;
    font-weight: bolder;
  }
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  img {
    border-style: none;
  }
  svg:not(:root) {
    overflow: hidden;
  }
  code, kbd, pre {
    font-family: monospace, monospace;
    font-size: 1em;
  }
  hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
  }
  input {
    font: inherit;
    margin: 0;
    overflow: visible;
  }
  [type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
  }
  * {
    box-sizing: border-box;
  }
  input {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
  }
  a {
    color: #0366d6;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }
  strong {
    font-weight: 600;
  }
  hr {
    height: 0;
    margin: 15px 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #dfe2e5;
    &::before {
      display: table;
      content: "";
    }
    &::after {
      display: table;
      clear: both;
      content: "";
    }
  }
  table {
    border-spacing: 0;
    border-collapse: collapse;
  }
  td, th {
    padding: 0;
  }
  h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0;
  }
  h1 {
    font-size: 32px;
    font-weight: 600;
  }
  h2 {
    font-size: 24px;
    font-weight: 600;
  }
  h3 {
    font-size: 20px;
    font-weight: 600;
  }
  h4 {
    font-size: 16px;
    font-weight: 600;
  }
  h5 {
    font-size: 14px;
    font-weight: 600;
  }
  h6 {
    font-size: 12px;
    font-weight: 600;
  }
  p {
    margin-top: 0;
    margin-bottom: 10px;
  }
  blockquote {
    margin: 0;
  }
  ul {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  ol {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    ol {
      list-style-type: lower-roman;
    }
  }
  ul {
    ol {
      list-style-type: lower-roman;
    }
    ul ol, ol ol {
      list-style-type: lower-alpha;
    }
  }
  ol {
    ul ol, ol ol {
      list-style-type: lower-alpha;
    }
  }
  dd {
    margin-left: 0;
  }
  code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 12px;
  }
  pre {
    margin-top: 0;
    margin-bottom: 0;
    font: 12px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  }
  .octicon {
    vertical-align: text-bottom;
  }
  .pl-0 {
    padding-left: 0 !important;
  }
  .pl-1 {
    padding-left: 4px !important;
  }
  .pl-2 {
    padding-left: 8px !important;
  }
  .pl-3 {
    padding-left: 16px !important;
  }
  .pl-4 {
    padding-left: 24px !important;
  }
  .pl-5 {
    padding-left: 32px !important;
  }
  .pl-6 {
    padding-left: 40px !important;
  }
  &::before {
    display: table;
    content: "";
  }
  &::after {
    display: table;
    clear: both;
    content: "";
  }
  > * {
    &:first-child {
      margin-top: 0 !important;
    }
    &:last-child {
      margin-bottom: 0 !important;
    }
  }
  a:not([href]) {
    color: inherit;
    text-decoration: none;
  }
  .anchor {
    float: left;
    padding-right: 4px;
    margin-left: -20px;
    line-height: 1;
    &:focus {
      outline: none;
    }
  }
  p, blockquote, ul, ol, dl, table, pre {
    margin-top: 0;
    margin-bottom: 16px;
  }
  hr {
    height: 0.25em;
    padding: 0;
    margin: 24px 0;
    background-color: #e1e4e8;
    border: 0;
  }
  blockquote {
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    > {
      :first-child {
        margin-top: 0;
      }
      :last-child {
        margin-bottom: 0;
      }
    }
  }
  kbd {
    display: inline-block;
    padding: 3px 5px;
    font-size: 11px;
    line-height: 10px;
    color: #444d56;
    vertical-align: middle;
    background-color: #fafbfc;
    border: solid 1px #c6cbd1;
    border-bottom-color: #959da5;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 #959da5;
  }
  h1, h2, h3, h4, h5, h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
  }
  h1 .octicon-link, h2 .octicon-link, h3 .octicon-link, h4 .octicon-link, h5 .octicon-link, h6 .octicon-link {
    color: #1b1f23;
    vertical-align: middle;
    visibility: hidden;
  }
  h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor {
    text-decoration: none;
  }
  h1:hover .anchor .octicon-link, h2:hover .anchor .octicon-link, h3:hover .anchor .octicon-link, h4:hover .anchor .octicon-link, h5:hover .anchor .octicon-link, h6:hover .anchor .octicon-link {
    visibility: visible;
  }
  h1 {
    padding-bottom: 0.3em;
    font-size: 2em;
    border-bottom: 1px solid #262626;
  }
  h2 {
    padding-bottom: 0.3em;
    font-size: 1.5em;
    border-bottom: 1px solid #262626;
  }
  h3 {
    font-size: 1.25em;
  }
  h4 {
    font-size: 1em;
  }
  h5 {
    font-size: 0.875em;
  }
  h6 {
    font-size: 0.85em;
    color: #6a737d;
  }
  ul, ol {
    padding-left: 2em;
  }
  ul {
    ul, ol {
      margin-top: 0;
      margin-bottom: 0;
    }
  }
  ol {
    ol, ul {
      margin-top: 0;
      margin-bottom: 0;
    }
  }
  li {
    > p {
      margin-top: 16px;
    }
    + li {
      margin-top: 0.25em;
    }
  }
  dl {
    padding: 0;
    dt {
      padding: 0;
      margin-top: 16px;
      font-size: 1em;
      font-style: italic;
      font-weight: 600;
    }
    dd {
      padding: 0 16px;
      margin-bottom: 16px;
    }
  }
  table {
    display: block;
    width: 100%;
    overflow: auto;
    th {
      font-weight: 600;
      padding: 6px 13px;
      border: 1px solid #dfe2e5;
    }
    td {
      padding: 6px 13px;
      border: 1px solid #dfe2e5;
    }
    tr {
      background-color: #3f3f3f;
      border-top: 1px solid #c6cbd1;
      &:nth-child(2n) {
        background-color: #f5f5f5;
      }
    }
  }
  img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: #3f3f3f;
  }
  code {
    padding: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 0;
    &::before, &::after {
      letter-spacing: -0.2em;
      content: "\00a0";
    }
  }
  pre {
    word-wrap: normal;
    > code {
      padding: 0;
      margin: 0;
      font-size: 100%;
      word-break: normal;
      white-space: pre;
      background: transparent;
      border: 0;
    }
  }
  .highlight {
    margin-bottom: 16px;
    pre {
      margin-bottom: 0;
      word-break: normal;
      padding: 16px;
      overflow: auto;
      font-size: 85%;
      line-height: 1.45;
      background-color: #f5f5f5;
      border-radius: 0;
    }
  }
  pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f5f5f5;
    border-radius: 0;
    code {
      display: inline;
      max-width: auto;
      padding: 0;
      margin: 0;
      overflow: visible;
      line-height: inherit;
      word-wrap: normal;
      background-color: transparent;
      border: 0;
      &::before, &::after {
        content: normal;
      }
    }
  }
  .full-commit .btn-outline:not(:disabled):hover {
    color: #005cc5;
    border-color: #005cc5;
  }
  kbd {
    display: inline-block;
    padding: 3px 5px;
    font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    line-height: 10px;
    color: #444d56;
    vertical-align: middle;
    background-color: #fcfcfc;
    border: solid 1px #c6cbd1;
    border-bottom-color: #959da5;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 #959da5;
  }
  :checked + .radio-label {
    position: relative;
    z-index: 1;
    border-color: #0366d6;
  }
  .task-list-item {
    list-style-type: none;
    + .task-list-item {
      margin-top: 3px;
    }
    input {
      margin: 0 0.2em 0.25em -1.6em;
      vertical-align: middle;
    }
  }
  hr {
    border-bottom-color: #eee;
  }
}*/